//
//  FSTableView.m
//  AtCar
//
//  Created by 代佳宏 on 2020/12/2.
//  Copyright © 2020 车一转. All rights reserved.
//

#import "FSTableView.h"

@implementation FSTableView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super touchesBegan:touches withEvent:event];
    if (self.touchBlock) {
        self.touchBlock(FSTouchTypeBegan, touches, event);
    }
}

- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super touchesMoved:touches withEvent:event];
    if (self.touchBlock) {
        self.touchBlock(FSTouchTypeMoved, touches, event);
    }
}

- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super touchesEnded:touches withEvent:event];
    if (self.touchBlock) {
        self.touchBlock(FSTouchTypeEnded, touches, event);
    }
}

- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super touchesCancelled:touches withEvent:event];
    if (self.touchBlock) {
        self.touchBlock(FSTouchTypeCancelled, touches, event);
    }
}

@end
